package d4_collection_set;

/**
 * 2024/6/4 哈希值 Cjj
 * */
public class SetTest2 {
    public static void main(String[] args) {
        Student s1 = new Student("蜘蛛精", 25, 167.6);
        Student s2 = new Student("蜘蛛", 23, 177.6);
        System.out.println(s1.hashCode());
        System.out.println(s2.hashCode());


        String s3 = new String("abd");
        String s4 = new String("abd");
        System.out.println(s3.hashCode());
        System.out.println(s4.hashCode());


    }
}
